package com.ruoyi.basedata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.basedata.mapper.BdWdtwarehouseconfigMapper;
import com.ruoyi.basedata.domain.BdWdtwarehouseconfig;
import com.ruoyi.basedata.service.IBdWdtwarehouseconfigService;

/**
 * 电商仓库Service业务层处理
 * 
 * @author ptt
 * @date 2024-12-03
 */
@Service
public class BdWdtwarehouseconfigServiceImpl implements IBdWdtwarehouseconfigService 
{
    @Autowired
    private BdWdtwarehouseconfigMapper bdWdtwarehouseconfigMapper;

    /**
     * 查询电商仓库
     * 
     * @param id 电商仓库主键
     * @return 电商仓库
     */
    @Override
    public BdWdtwarehouseconfig selectBdWdtwarehouseconfigById(Long id)
    {
        return bdWdtwarehouseconfigMapper.selectBdWdtwarehouseconfigById(id);
    }

    /**
     * 查询电商仓库列表
     * 
     * @param bdWdtwarehouseconfig 电商仓库
     * @return 电商仓库
     */
    @Override
    public List<BdWdtwarehouseconfig> selectBdWdtwarehouseconfigList(BdWdtwarehouseconfig bdWdtwarehouseconfig)
    {
        return bdWdtwarehouseconfigMapper.selectBdWdtwarehouseconfigList(bdWdtwarehouseconfig);
    }

    /**
     * 新增电商仓库
     * 
     * @param bdWdtwarehouseconfig 电商仓库
     * @return 结果
     */
    @Override
    public int insertBdWdtwarehouseconfig(BdWdtwarehouseconfig bdWdtwarehouseconfig)
    {
        return bdWdtwarehouseconfigMapper.insertBdWdtwarehouseconfig(bdWdtwarehouseconfig);
    }

    /**
     * 修改电商仓库
     * 
     * @param bdWdtwarehouseconfig 电商仓库
     * @return 结果
     */
    @Override
    public int updateBdWdtwarehouseconfig(BdWdtwarehouseconfig bdWdtwarehouseconfig)
    {
        return bdWdtwarehouseconfigMapper.updateBdWdtwarehouseconfig(bdWdtwarehouseconfig);
    }

    /**
     * 批量删除电商仓库
     * 
     * @param ids 需要删除的电商仓库主键
     * @return 结果
     */
    @Override
    public int deleteBdWdtwarehouseconfigByIds(Long[] ids)
    {
        return bdWdtwarehouseconfigMapper.deleteBdWdtwarehouseconfigByIds(ids);
    }

    /**
     * 删除电商仓库信息
     * 
     * @param id 电商仓库主键
     * @return 结果
     */
    @Override
    public int deleteBdWdtwarehouseconfigById(Long id)
    {
        return bdWdtwarehouseconfigMapper.deleteBdWdtwarehouseconfigById(id);
    }
}
